<?php
    include_once("checkAuthenticationAction.php");
    include_once("../service/articleService.php");
    include_once("../util/constant.php");
    $title = $_POST["pageTitle"];
    $order = $_POST["order"];
    $page = $_POST["edit_page_id"];
    $result = updatePage($page,$title,$order,0,"");
    echo "<script>window.location.href='../admin/page-detail.php?action=".EDIT_ACTION."&id=".$page."';</script>";
?>